<script setup lang="ts">
import { ArrowLeftBold,ArrowRight } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router';
import { ref } from 'vue';
let router = useRouter()
</script>

<template>
    <div id="setting">
        <div class="top">
            <el-icon @click="router.back()">
                <ArrowLeftBold />
            </el-icon>
            <h3 style="margin: 0 auto">设置</h3>
        </div>
        <div class="main">
            <div class="shop">
                <ul class="shopinfo">
                    <li @click="router.push('/service')"><p style="padding-left: 10px;">服务协议</p><div><el-icon><ArrowRight /></el-icon></div></li>
                    <li @click="router.push('/priva')"><p style="padding-left: 10px;">隐私政策</p><div><el-icon><ArrowRight /></el-icon></div></li>
                    <li @click="router.push('/mall')"><p style="padding-left: 10px;">关于我们</p><div><el-icon><ArrowRight /></el-icon></div></li>
                </ul>
            </div>
        </div>
    </div>
</template>


<style scoped lang="scss">
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #F7F7F7;
}

#setting {
    width: 100%;
    height: 100%;

    .top {
        width: 100%;
        height: 30px;
        display: flex;
        align-items: center;
    }

    .main {
        width: 100%;
        height: 100%;
        overflow: hidden;
        .shop{
            width: 90%;
            height: 170px;
            margin: 0 auto;
            margin-top: 20px;
            border-radius: 20px;
            background-color: #FFFFFF;
            border: 1px solid #E5E5E5;
            .shopinfo{
                width: 100%;
                height: 100%;
                list-style: none;
                li{
                    width: 100%;
                    height: 50px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                }
            }
        }
    }
}
</style>